package com.daimakuai.dao.impl;

import com.daimakuai.dao.UserInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * @author happyonion.yangtao
 * @Title: UserInfoDaoImpl
 * @ProjectName admin-behind
 * @PackageName com.daimakuai.dao.impl
 * @Description TODO
 * @date Create at 2018/12/20 20:31
 */
@Service
public class UserInfoDaoImpl implements UserInfoDao {

    @Autowired
    @Qualifier("mongoTemplate")
    protected MongoTemplate mongoTemplate;

    @Override
    public void add(Object obj) {
        this.mongoTemplate.insert(obj);
    }
}
